package com.ylkj.ylboss.freemark.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.ylkj.common.entity.QuestionInfo;
import com.ylkj.member.service.QuestionInfoService;

@Controller
@RequestMapping("/login")
public class Login {
	private static Log log = LogFactory.getLog(Login.class);
	
	@Autowired
	private QuestionInfoService questionInfoService;

	@RequestMapping("/index")
	public ModelAndView getAnswerInfo(HttpServletRequest request, HttpServletResponse response) {

		List<QuestionInfo> QuestionInfoList = questionInfoService.queryQuestionInfoByPara(null);
		// LawyerInfo lawyerInfo = new LawyerInfo();
		// lawyerInfo.setLawyerName("张三");
		// lawyerInfo.setCertificateNo("13000000000");
		// lawyerInfo.setPhoneNum("1234");
		// List<LawyerInfo> lawyerInfos = new ArrayList<LawyerInfo>();
		// lawyerInfos.add(lawyerInfo);
		return new ModelAndView("index", "questionInfoList", QuestionInfoList);
	}
}
